
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>10.1 NameNode和SecondaryNameNode工作机制 · 大数据hadoop课堂笔记</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content=" 李振超">
        
        
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-page-toc-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-prism/prism-base16-ateliersulphurpool.light.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-change_girls/girls.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
        <link rel="stylesheet" href="../../styles/website.css">
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="102-namenodede-wen-jian-mu-lu-jie-gou.html" />
    
    
    <link rel="prev" href="../di-10-zhang-namenode-he-secondarynamenode.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="http://www.atguigu.com/" target="_blank" class="custom-link">联系我们</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        <li class="header">第 1 部分 Hadoop入门</li>
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../">
            
                <a href="../../">
            
                    
                    本书介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../../chapter1.html">
            
                <a href="../../chapter1.html">
            
                    
                    第 1 章 大数据概论
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../../chapter1/11da-shu-ju-gai-nian.html">
            
                <a href="../../chapter1/11da-shu-ju-gai-nian.html">
            
                    
                    1.1大数据概念
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../../chapter1/12-da-shu-ju-ying-yong-chang-jing.html">
            
                <a href="../../chapter1/12-da-shu-ju-ying-yong-chang-jing.html">
            
                    
                    1.2 大数据应用场景
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../../chapter1/13-da-shu-ju-de-fa-zhan-qian-jing.html">
            
                <a href="../../chapter1/13-da-shu-ju-de-fa-zhan-qian-jing.html">
            
                    
                    1.3 大数据的发展前景
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../../chapter1/14-da-shu-ju-de-te-dian.html">
            
                <a href="../../chapter1/14-da-shu-ju-de-te-dian.html">
            
                    
                    1.4 大数据的特点
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../../di-2-zhang-hadoop-gai-shu.html">
            
                <a href="../../di-2-zhang-hadoop-gai-shu.html">
            
                    
                    第 2 章 Hadoop 概述
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../../di-2-zhang-hadoop-gai-shu/21-hadoopshi-shi-yao.html">
            
                <a href="../../di-2-zhang-hadoop-gai-shu/21-hadoopshi-shi-yao.html">
            
                    
                    2.1 Hadoop是什么
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../../di-2-zhang-hadoop-gai-shu/22-hadoopfa-zhan-li-shi.html">
            
                <a href="../../di-2-zhang-hadoop-gai-shu/22-hadoopfa-zhan-li-shi.html">
            
                    
                    2.2 Hadoop发展简史
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../../di-2-zhang-hadoop-gai-shu/23-hadoopde-san-da-fa-xing-ban-ben.html">
            
                <a href="../../di-2-zhang-hadoop-gai-shu/23-hadoopde-san-da-fa-xing-ban-ben.html">
            
                    
                    2.3 Hadoop的发行版本
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="../../di-2-zhang-hadoop-gai-shu/24-hadoopde-you-shi.html">
            
                <a href="../../di-2-zhang-hadoop-gai-shu/24-hadoopde-you-shi.html">
            
                    
                    2.4 Hadoop的优势
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../../di-3-zhang-hadoop-de-zu-cheng-mo-kuai.html">
            
                <a href="../../di-3-zhang-hadoop-de-zu-cheng-mo-kuai.html">
            
                    
                    第 3 章 Hadoop的组成模块
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../../di-3-zhang-hadoop-de-zu-cheng-mo-kuai/31-hadoop1xde-zu-cheng.html">
            
                <a href="../../di-3-zhang-hadoop-de-zu-cheng-mo-kuai/31-hadoop1xde-zu-cheng.html">
            
                    
                    3.1 Hadoop1.x的组成
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../../di-3-zhang-hadoop-de-zu-cheng-mo-kuai/32-hadoop2xde-zu-cheng.html">
            
                <a href="../../di-3-zhang-hadoop-de-zu-cheng-mo-kuai/32-hadoop2xde-zu-cheng.html">
            
                    
                    3.2 Hadoop2.x的组成
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.2.1" data-path="../../di-3-zhang-hadoop-de-zu-cheng-mo-kuai/32-hadoop2xde-zu-cheng/321-hdfsjia-gou-gai-shu.html">
            
                <a href="../../di-3-zhang-hadoop-de-zu-cheng-mo-kuai/32-hadoop2xde-zu-cheng/321-hdfsjia-gou-gai-shu.html">
            
                    
                    3.2.1 HDFS架构概述
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2.2" data-path="../../di-3-zhang-hadoop-de-zu-cheng-mo-kuai/32-hadoop2xde-zu-cheng/322-yarn-jia-gou-gai-shu.html">
            
                <a href="../../di-3-zhang-hadoop-de-zu-cheng-mo-kuai/32-hadoop2xde-zu-cheng/322-yarn-jia-gou-gai-shu.html">
            
                    
                    3.2.2 YARN 架构概述
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2.3" data-path="../../di-3-zhang-hadoop-de-zu-cheng-mo-kuai/32-hadoop2xde-zu-cheng/323-mapreducejia-gou-gai-shu.html">
            
                <a href="../../di-3-zhang-hadoop-de-zu-cheng-mo-kuai/32-hadoop2xde-zu-cheng/323-mapreducejia-gou-gai-shu.html">
            
                    
                    3.2.3 MapReduce架构概述
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../../di-3-zhang-hadoop-kai-fa-huan-jing-da-jian.html">
            
                <a href="../../di-3-zhang-hadoop-kai-fa-huan-jing-da-jian.html">
            
                    
                    第 4 章 Hadoop 运行环境搭建
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../../di-3-zhang-hadoop-kai-fa-huan-jing-da-jian/41-zhun-bei-xu-ni-ji-huan-jing.html">
            
                <a href="../../di-3-zhang-hadoop-kai-fa-huan-jing-da-jian/41-zhun-bei-xu-ni-ji-huan-jing.html">
            
                    
                    4.1 准备虚拟机环境
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../../di-3-zhang-hadoop-kai-fa-huan-jing-da-jian/42-an-zhuang-jdk.html">
            
                <a href="../../di-3-zhang-hadoop-kai-fa-huan-jing-da-jian/42-an-zhuang-jdk.html">
            
                    
                    4.2 安装jdk
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../../di-3-zhang-hadoop-kai-fa-huan-jing-da-jian/43-an-zhuang-hadoop.html">
            
                <a href="../../di-3-zhang-hadoop-kai-fa-huan-jing-da-jian/43-an-zhuang-hadoop.html">
            
                    
                    4.3 安装 Hadoop
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../../di-4-zhang-yun-xing-hadoop.html">
            
                <a href="../../di-4-zhang-yun-xing-hadoop.html">
            
                    
                    第 5 章 运行 Hadoop
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../../di-4-zhang-yun-xing-hadoop/51-ben-di-yun-xing-mo-shi.html">
            
                <a href="../../di-4-zhang-yun-xing-hadoop/51-ben-di-yun-xing-mo-shi.html">
            
                    
                    5.1 本地运行模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../../di-4-zhang-yun-xing-hadoop/52-wei-fen-bu-yun-xing-mo-shi.html">
            
                <a href="../../di-4-zhang-yun-xing-hadoop/52-wei-fen-bu-yun-xing-mo-shi.html">
            
                    
                    5.2 伪分布运行模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../../di-4-zhang-yun-xing-hadoop/53-wan-quan-fen-bu-yun-xing-mo-shi.html">
            
                <a href="../../di-4-zhang-yun-xing-hadoop/53-wan-quan-fen-bu-yun-xing-mo-shi.html">
            
                    
                    5.3 完全分布运行模式
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    
        
        <li class="header">第 2 部分 HDFS</li>
        
        
    
        <li class="chapter " data-level="2.1" data-path="../di-6-zhang-hdfs-gai-shu.html">
            
                <a href="../di-6-zhang-hdfs-gai-shu.html">
            
                    
                    第 6 章 HDFS概述
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="../di-7-zhang-hdfs-de-shell-cao-zuo.html">
            
                <a href="../di-7-zhang-hdfs-de-shell-cao-zuo.html">
            
                    
                    第 7 章 HDFS的shell操作
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="../di-8-zhang-hdfs-ke-hu-duan-cao-zuo.html">
            
                <a href="../di-8-zhang-hdfs-ke-hu-duan-cao-zuo.html">
            
                    
                    第 8 章 HDFS客户端操作
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.3.1" data-path="../di-8-zhang-hdfs-ke-hu-duan-cao-zuo/81-ke-hu-duan-huan-jing-zhun-bei.html">
            
                <a href="../di-8-zhang-hdfs-ke-hu-duan-cao-zuo/81-ke-hu-duan-huan-jing-zhun-bei.html">
            
                    
                    8.1 客户端环境准备
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.2" data-path="../di-8-zhang-hdfs-ke-hu-duan-cao-zuo/82-shi-yong-java-cheng-xu-lai-fang-wen-hdfs.html">
            
                <a href="../di-8-zhang-hdfs-ke-hu-duan-cao-zuo/82-shi-yong-java-cheng-xu-lai-fang-wen-hdfs.html">
            
                    
                    8.2 使用Java程序来访问HDFS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.3" data-path="../di-8-zhang-hdfs-ke-hu-duan-cao-zuo/83-zai-hdfs-zhong-chuang-jian-mu-lu.html">
            
                <a href="../di-8-zhang-hdfs-ke-hu-duan-cao-zuo/83-zai-hdfs-zhong-chuang-jian-mu-lu.html">
            
                    
                    8.3 在HDFS中创建目录
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.4" data-path="../di-8-zhang-hdfs-ke-hu-duan-cao-zuo/84-hdfschang-yong-api-cao-zuo.html">
            
                <a href="../di-8-zhang-hdfs-ke-hu-duan-cao-zuo/84-hdfschang-yong-api-cao-zuo.html">
            
                    
                    8.4 上传文件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.5" data-path="../di-8-zhang-hdfs-ke-hu-duan-cao-zuo/85-xia-zai-wen-jian.html">
            
                <a href="../di-8-zhang-hdfs-ke-hu-duan-cao-zuo/85-xia-zai-wen-jian.html">
            
                    
                    8.5 下载文件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.6" data-path="../di-8-zhang-hdfs-ke-hu-duan-cao-zuo/86-wen-jian-jia-shan-chu.html">
            
                <a href="../di-8-zhang-hdfs-ke-hu-duan-cao-zuo/86-wen-jian-jia-shan-chu.html">
            
                    
                    8.6 文件夹删除
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.7" data-path="../di-8-zhang-hdfs-ke-hu-duan-cao-zuo/87-wen-jian-ming-geng-gai.html">
            
                <a href="../di-8-zhang-hdfs-ke-hu-duan-cao-zuo/87-wen-jian-ming-geng-gai.html">
            
                    
                    8.7 文件名更改
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.8" data-path="../di-8-zhang-hdfs-ke-hu-duan-cao-zuo/88-wen-jian-xiang-qing-cha-kan.html">
            
                <a href="../di-8-zhang-hdfs-ke-hu-duan-cao-zuo/88-wen-jian-xiang-qing-cha-kan.html">
            
                    
                    8.8 文件详情查看
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.9" data-path="../di-8-zhang-hdfs-ke-hu-duan-cao-zuo/89-wen-jian-he-wen-jian-jia-pan-duan.html">
            
                <a href="../di-8-zhang-hdfs-ke-hu-duan-cao-zuo/89-wen-jian-he-wen-jian-jia-pan-duan.html">
            
                    
                    8.9 文件和文件夹判断
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.10" data-path="../di-8-zhang-hdfs-ke-hu-duan-cao-zuo/810-hdfsde-i-o-liu-cao-zuo.html">
            
                <a href="../di-8-zhang-hdfs-ke-hu-duan-cao-zuo/810-hdfsde-i-o-liu-cao-zuo.html">
            
                    
                    8.10 HDFS的I/O流操作
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="../di-9-zhang-hdfs-shu-ju-liang.html">
            
                <a href="../di-9-zhang-hdfs-shu-ju-liang.html">
            
                    
                    第 9 章 HDFS读写数据流
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.4.1" data-path="../di-9-zhang-hdfs-shu-ju-liang/91-xiang-hdfs-xie-ru-shu-ju-de-liu-cheng.html">
            
                <a href="../di-9-zhang-hdfs-shu-ju-liang/91-xiang-hdfs-xie-ru-shu-ju-de-liu-cheng.html">
            
                    
                    9.1 从HDFS读取数据的流程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.2" data-path="../di-9-zhang-hdfs-shu-ju-liang/92-cong-hdfs-du-qu-shu-ju-de-liu-cheng.html">
            
                <a href="../di-9-zhang-hdfs-shu-ju-liang/92-cong-hdfs-du-qu-shu-ju-de-liu-cheng.html">
            
                    
                    9.2 向HDFS写入数据的流程
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="../di-10-zhang-namenode-he-secondarynamenode.html">
            
                <a href="../di-10-zhang-namenode-he-secondarynamenode.html">
            
                    
                    第 10 章 NameNode和SecondaryNameNode
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="2.5.1" data-path="101-gong-zuo-ji-zhi.html">
            
                <a href="101-gong-zuo-ji-zhi.html">
            
                    
                    10.1 NameNode和SecondaryNameNode工作机制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5.2" data-path="102-namenodede-wen-jian-mu-lu-jie-gou.html">
            
                <a href="102-namenodede-wen-jian-mu-lu-jie-gou.html">
            
                    
                    10.2 NameNode的文件目录结构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5.3" data-path="103-secondarynamenodede-wen-jian-mu-lu-jie-gou.html">
            
                <a href="103-secondarynamenodede-wen-jian-mu-lu-jie-gou.html">
            
                    
                    10.3 SecondaryNameNode的文件目录结构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5.4" data-path="104-namenodegu-zhang-chu-li.html">
            
                <a href="104-namenodegu-zhang-chu-li.html">
            
                    
                    10.4 NameNode故障处理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5.5" data-path="105-ji-qun-an-quan-mo-shi.html">
            
                <a href="105-ji-qun-an-quan-mo-shi.html">
            
                    
                    10.5 集群安全模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5.6" data-path="106-namenodeduo-mu-lu-pei-zhi.html">
            
                <a href="106-namenodeduo-mu-lu-pei-zhi.html">
            
                    
                    10.6 NameNode多目录配置
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.6" data-path="../di-11-zhang-datanode.html">
            
                <a href="../di-11-zhang-datanode.html">
            
                    
                    第 11 章 DataNode
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.6.1" data-path="../di-11-zhang-datanode/111-datanodegong-zuo-ji-zhi.html">
            
                <a href="../di-11-zhang-datanode/111-datanodegong-zuo-ji-zhi.html">
            
                    
                    11.1 DataNode工作机制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.2" data-path="../di-11-zhang-datanode/112-datanodede-mu-lu-jie-gou.html">
            
                <a href="../di-11-zhang-datanode/112-datanodede-mu-lu-jie-gou.html">
            
                    
                    11.2 DataNode的目录结构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.3" data-path="../di-11-zhang-datanode/112-shu-ju-wan-zheng-xing.html">
            
                <a href="../di-11-zhang-datanode/112-shu-ju-wan-zheng-xing.html">
            
                    
                    11.3 数据完整性
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.4" data-path="../di-11-zhang-datanode/114-diao-xian-shi-xian-can-shu-she-zhi.html">
            
                <a href="../di-11-zhang-datanode/114-diao-xian-shi-xian-can-shu-she-zhi.html">
            
                    
                    11.4 掉线时限参数设置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.5" data-path="../di-11-zhang-datanode/115-datanodeduo-mu-lu-pei-zhi.html">
            
                <a href="../di-11-zhang-datanode/115-datanodeduo-mu-lu-pei-zhi.html">
            
                    
                    11.5 DataNode多目录配置
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    
        
        <li class="header">第 3 部分 MapReduce</li>
        
        
    

    
        
        <li class="header">第 4 部分 Hadoop高级特性</li>
        
        
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../.." >10.1 NameNode和SecondaryNameNode工作机制</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="101-namenode&#x548C;secondarynamenode&#x5DE5;&#x4F5C;&#x673A;&#x5236;">10.1 NameNode&#x548C;SecondaryNameNode&#x5DE5;&#x4F5C;&#x673A;&#x5236;</h1>
<p><code>HDFS</code>&#x542F;&#x52A8;&#x540E;&#x4F1A;&#x81EA;&#x52A8;&#x5728;&#x540E;&#x53F0;&#x5F00;&#x542F; 3 &#x4E2A;&#x5B88;&#x62A4;&#x8FDB;&#x7A0B;:<code>NameNode</code>, <code>SecondaryNameNode</code>&#x548C;<code>DataNode</code>.</p>
<p>&#x8FD9;&#x4E00;&#x8282;&#x6211;&#x4EEC;&#x5148;&#x5B66;&#x4E60;<code>NameNode</code>&#x548C;<code>SecondaryNameNode</code>&#x7684;&#x5DE5;&#x4F5C;&#x673A;&#x5236;,&#x4E0B;&#x8282;&#x518D;&#x5B66;&#x4E60;<code>DataNode</code>&#x7684;&#x5DE5;&#x4F5C;&#x673A;&#x5236;.</p>
<hr>
<h2 id="1011-namenode&#x5DE5;&#x4F5C;&#x673A;&#x5236;">10.1.1 <code>NameNode</code>&#x5DE5;&#x4F5C;&#x673A;&#x5236;</h2>
<p><code>NameNode</code>&#x662F;&#x7528;&#x6765;&#x4FDD;&#x5B58;<code>HDFS</code>&#x7684;&#x5143;&#x6570;&#x636E;&#x6570;&#x636E;&#x4FE1;&#x606F;, &#x6BD4;&#x5982;: &#x547D;&#x540D;&#x7A7A;&#x95F4;&#x4FE1;&#x606F;, &#x5757;&#x4FE1;&#x606F;&#x7B49;.</p>
<p>&#x8FD9;&#x4E9B;&#x5143;&#x6570;&#x636E;&#x4FE1;&#x606F;&#x662F;&#x4FDD;&#x5B58;&#x5728;&#x5185;&#x5B58;&#x4E2D;&#x7684;.</p>
<p>&#x4F46;&#x662F;&#x5185;&#x5B58;&#x4E2D;&#x7684;&#x6570;&#x636E;&#x65AD;&#x7535;&#x4E4B;&#x540E;&#x4F1A;&#x6D88;&#x5931;, &#x7136;&#x540E;&#x5F53;&#x6211;&#x4EEC;&#x91CD;&#x542F;<code>HDFS</code>&#x4E4B;&#x540E;, &#x53D1;&#x73B0;&#x6211;&#x4EEC;&#x5B58;&#x50A8;&#x7684;&#x90A3;&#x4E9B;&#x6570;&#x636E;&#x4ECD;&#x7136;&#x662F;&#x5B58;&#x5728;&#x7684;, &#x4ECD;&#x7136;&#x662F;&#x53EF;&#x4EE5;&#x8BBF;&#x95EE;&#x5230;&#x7684;. </p>
<p>&#x8FD9;&#x662F;&#x4E3A;&#x4EC0;&#x4E48;&#x5462;?</p>
<p>&#x56E0;&#x4E3A;, &#x8FD9;&#x4E9B;&#x5143;&#x6570;&#x636E;&#x4FE1;&#x606F;&#x4E0D;&#x4EC5;&#x4FDD;&#x5B58;&#x5728;&#x5185;&#x5B58;&#x4E2D;, <code>HDFS</code>&#x4E5F;&#x4F1A;&#x5BF9;&#x8FD9;&#x4E9B;&#x5143;&#x6570;&#x636E;&#x4FE1;&#x606F;&#x505A;&#x6301;&#x4E45;&#x5316;&#x7684;&#x5B58;&#x50A8;, &#x4ECE;&#x800C;&#x4FDD;&#x5B58;&#x5728;&#x6211;&#x4EEC;&#x7684;&#x78C1;&#x76D8;&#x4ECB;&#x8D28;&#x4E2D;.</p>
<p><code>HDFS</code>&#x5728;&#x78C1;&#x76D8;&#x4E2D;&#x4F1A;&#x751F;&#x6210;&#x4E24;&#x4E2A;&#x6587;&#x4EF6;&#x6765;&#x4FDD;&#x5B58;&#x5143;&#x6570;&#x636E;&#x4FE1;&#x606F;&#x548C;&#x7F16;&#x8F91;&#x65E5;&#x5FD7;&#x4FE1;&#x606F;.</p>
<ul>
<li>&#x547D;&#x540D;&#x7A7A;&#x95F4;&#x955C;&#x50CF;(&#x6587;&#x4EF6;&#x7CFB;&#x7EDF;&#x955C;&#x50CF;, <code>File System Image</code>, <code>FSImage</code>)</li>
<li>&#x7F16;&#x8F91;&#x65E5;&#x5FD7;(<code>editlog</code>)</li>
</ul>
<hr>
<h3 id="namenode&#x5DE5;&#x4F5C;&#x673A;&#x5236;&#x5206;&#x89E3;"><code>NameNode</code>&#x5DE5;&#x4F5C;&#x673A;&#x5236;&#x5206;&#x89E3;:</h3>
<ol>
<li><p>&#x5F53;&#x542F;&#x52A8;<code>NameNode</code>&#x7684;&#x65F6;&#x5019;, &#x52A0;&#x8F7D;<code>FSImage</code>&#x548C;<code>edits</code>&#x6587;&#x4EF6;&#x4E2D;&#x7684;&#x5185;&#x5BB9;, &#x5E76;&#x5408;&#x5E76;&#x4ED6;&#x4EEC;, &#x751F;&#x6210;&#x6240;&#x6709;&#x6570;&#x636E;&#x7684;&#x5143;&#x6570;&#x636E;, &#x7136;&#x540E;&#x4FDD;&#x5B58;&#x5728;<code>NamoNode</code>&#x6240;&#x5728;&#x8282;&#x70B9;&#x7684;&#x5185;&#x5B58;&#x4E2D;.</p>
</li>
<li><p>&#x5982;&#x679C;&#x662F;<code>NameNode</code>&#x7B2C;&#x4E00;&#x6B21;&#x542F;&#x52A8;, &#x5219;&#x4F1A;&#x521B;&#x5EFA;<code>FSImage</code>&#x548C;<code>edits</code>&#x8FD9;&#x4E24;&#x4E2A;&#x6587;&#x4EF6;.</p>
</li>
<li><p>&#x5F53;&#x5BF9;&#x6570;&#x636E;&#x8FDB;&#x884C;&#x589E;&#x5220;&#x6539;(&#x4E0D;&#x5305;&#x62EC;&#x8BFB;)&#x7684;&#x65F6;&#x5019;, <code>NameNode</code>&#x4F1A;&#x628A;&#x6240;&#x6709;&#x7684;&#x64CD;&#x4F5C;&#x6B65;&#x9AA4;&#x8BB0;&#x5F55;&#x5230;<code>edits</code>&#x6587;&#x4EF6;&#x4E2D;.</p>
</li>
<li><p>&#x7136;&#x540E;&#x518D;&#x53BB;&#x66F4;&#x65B0;&#x5185;&#x5B58;&#x4E2D;&#x7684;&#x5143;&#x6570;&#x636E;&#x4FE1;&#x606F;.</p>
</li>
</ol>
<blockquote>
<h4 id="&#x6CE8;&#x610F;"><em>&#x6CE8;&#x610F;:</em></h4>
</blockquote>
<ul>
<li>&#x52A0;&#x8F7D;<code>FSImage</code>&#x548C;<code>edits</code>&#x5E76;&#x5408;&#x5E76;&#x4ED6;&#x4EEC;&#x53EA;&#x53D1;&#x751F;&#x5728;<code>NameNode</code>&#x542F;&#x52A8;&#x9636;&#x6BB5;. &#x5176;&#x4ED6;&#x4EFB;&#x4F55;&#x7684;&#x9636;&#x6BB5;&#x90FD;&#x4E0D;&#x4F1A;&#x6267;&#x884C;&#x8FD9;&#x4E2A;&#x64CD;&#x4F5C;.</li>
</ul>
<hr>
<h2 id="1012-secondarynamenode&#x5DE5;&#x4F5C;&#x673A;&#x5236;">10.1.2 <code>SecondaryNameNode</code>&#x5DE5;&#x4F5C;&#x673A;&#x5236;</h2>
<p>&#x9996;&#x5148;&#x77E5;&#x9053;&#x4E00;&#x70B9;: <code>SecondaryNameNode</code>&#x4E0D;&#x662F;<code>NameNode</code>&#x7684;&#x70ED;&#x5907;&#x4EFD;, &#x4ED6;&#x505A;&#x7684;&#x4E8B;&#x60C5;&#x4E0E;<code>NameNode</code>&#x662F;&#x5B8C;&#x5168;&#x4E0D;&#x540C;&#x7684;.</p>
<p>&#x5F88;&#x591A;&#x4EBA;&#x603B;&#x662F;&#x8BEF;&#x89E3;<code>SecondaryNameNode</code>, &#x4E3B;&#x8981;&#x662F;&#x56E0;&#x4E3A;&#x8FD9;&#x4E2A;&#x540D;&#x5B57;&#x8D77;&#x5F97;&#x4E0D;&#x597D;.</p>
<p>&#x867D;&#x7136;<code>SecondaryNameNode</code>&#x4E0E;<code>NameNode</code>&#x505A;&#x7684;&#x4E8B;&#x60C5;&#x4E0D;&#x4E00;&#x6837;, &#x4F46;&#x662F;<code>SecondaryNameNode</code>&#x505A;&#x7684;&#x4E8B;&#x60C5;&#x5374;&#x4E0E;<code>NameNode</code>&#x606F;&#x606F;&#x76F8;&#x5173;.</p>
<p>&#x5176;&#x5B9E;<code>SecondaryNameNode</code>&#x5C31;&#x662F;<code>NameNode</code>&#x7684;&#x5C0F;&#x871C;, <code>NameNode</code>&#x4E0D;&#x65B9;&#x4FBF;, &#x4E0D;&#x5408;&#x9002;&#x505A;&#x7684;&#x4E8B;&#x60C5;<code>SecondaryNameNode</code>&#x6765;&#x505A;.</p>
<p>&#x5982;&#x679C;&#x5F53;&#x521D;<code>SecondaryNameNode</code>&#x7684;&#x540D;&#x5B57;&#x8D77;&#x4E3A;<code>AssistNameNode(&#x8F85;&#x52A9;NameNode)</code>&#x53EF;&#x4EE5;&#x4F1A;&#x66F4;&#x52A0;&#x5BB9;&#x6613;&#x8BA9;&#x4EBA;&#x63A5;&#x53D7;&#x4E00;&#x70B9;.</p>
<hr>
<p>&#x5728;&#x542F;&#x52A8;<code>NameNode</code>&#x7684;&#x65F6;&#x5019;, <code>NameNode</code>&#x4F1A;&#x628A;<code>edits</code>&#x4E2D;&#x7684;&#x64CD;&#x4F5C;&#x6B65;&#x9AA4;&#x5408;&#x5E76;&#x5230;<code>FSImage</code>&#x4E2D;. </p>
<p><code>edits</code>&#x4E2D;&#x662F;&#x8BB0;&#x5F55;&#x7684;&#x6211;&#x4EEC;&#x7684;&#x5BF9;&#x5143;&#x6570;&#x636E;&#x4FEE;&#x6539;&#x7684;&#x64CD;&#x4F5C;&#x6B65;&#x9AA4;, &#x7531;&#x4E8E;<code>NameNode</code>&#x5F88;&#x5C11;&#x4F1A;&#x91CD;&#x65B0;&#x542F;&#x52A8;, &#x968F;&#x7740;&#x65F6;&#x95F4;&#x7684;&#x589E;&#x957F;, <code>edits</code>&#x7684;&#x6587;&#x4EF6;&#x4F1A;&#x53D8;&#x7684;&#x8D8A;&#x6765;&#x8D8A;&#x5927;, &#x90A3;&#x4E48;&#x4E00;&#x65E6;<code>NameNode</code>&#x9700;&#x8981;&#x91CD;&#x542F;, &#x5219;&#x5408;&#x5E76;&#x7684;&#x65F6;&#x95F4;&#x4F1A;&#x8FC7;&#x957F;,&#x5BFC;&#x81F4;<code>NameNode</code>&#x542F;&#x52A8;&#x7F13;&#x6162;, &#x8FDB;&#x800C;&#x5F71;&#x54CD;&#x5230;&#x6574;&#x4E2A;&#x96C6;&#x7FA4;&#x7684;&#x6B63;&#x5E38;&#x5DE5;&#x4F5C;.</p>
<p>&#x90A3;&#x4E48;<code>SecondaryNameNode</code>&#x8981;&#x505A;&#x7684;&#x4E8B;&#x60C5;&#x5C31;&#x662F;&#x5B9A;&#x671F;&#x628A;<code>edits</code>&#x5408;&#x5E76;&#x5230;<code>FSImage</code>&#x4E2D;, &#x6765;&#x9632;&#x6B62;<code>edits</code>&#x8FC7;&#x5927;, &#x4ECE;&#x800C;&#x4E0D;&#x4F1A;&#x5BFC;&#x81F4;<code>NameNode</code>&#x542F;&#x52A8;&#x7684;&#x8FC7;&#x4E8E;&#x7F13;&#x6162;.</p>
<p>&#x6709;&#x4EBA;&#x8BF4;, &#x90A3;&#x8FD9;&#x4E2A;&#x5DE5;&#x4F5C;&#x4E3A;&#x5565;&#x4E0D;&#x8BA9;<code>NameNode</code>&#x81EA;&#x5DF1;&#x505A;&#x5462;? &#x56E0;&#x4E3A;<code>NameNode</code>&#x8981;&#x628A;&#x4E3B;&#x8981;&#x7CBE;&#x529B;&#x653E;&#x5728;&#x5904;&#x7406;&#x6587;&#x4EF6;&#x7684;&#x8BFB;&#x5199;&#x8BF7;&#x6C42;&#x4E0A;, &#x4E3A;&#x4E86;&#x66F4;&#x5FEB;&#x7684;&#x54CD;&#x5E94;&#x5BA2;&#x6237;&#x7AEF;&#x7684;&#x8BFB;&#x5199;&#x8BF7;&#x6C42;.  </p>
<hr>
<h3 id="secondarynamenode&#x5DE5;&#x4F5C;&#x673A;&#x5236;&#x5206;&#x89E3;"><code>SecondaryNameNode</code>&#x5DE5;&#x4F5C;&#x673A;&#x5236;&#x5206;&#x89E3;</h3>
<p><code>SecondaryNameNode</code>&#x5DE5;&#x4F5C;&#x7684;&#x4E3B;&#x8981;&#x5185;&#x5BB9;&#x5C31;&#x662F;&#x4E3A;<code>NameNode</code>&#x521B;&#x5EFA;<code>checkpoint(&#x68C0;&#x67E5;&#x70B9;)</code>, &#x4ECE;&#x800C;&#x5B8C;&#x6210;&#x81EA;&#x5DF1;&#x7684;&#x8F85;&#x52A9;&#x5DE5;&#x4F5C;.</p>
<p>&#x521B;&#x5EFA;<code>checkpoint</code>&#x7684;&#x6B65;&#x9AA4;&#x5982;&#x4E0B;:</p>
<ol>
<li><p><code>SecondaryNameNode</code>&#x8BF7;&#x6C42;<code>NameNode</code>&#x505C;&#x6B62;&#x6B63;&#x5728;&#x4F7F;&#x7528;&#x7684;<code>edits</code>&#x6587;&#x4EF6;, &#x521B;&#x5EFA;&#x4E00;&#x4E2A;&#x65B0;&#x7684;<code>edits</code>&#x6587;&#x4EF6;, &#x8FD9;&#x6837;&#x65B0;&#x7684;&#x64CD;&#x4F5C;&#x7EAA;&#x5F8B;&#x5C31;&#x4F1A;&#x8BB0;&#x5F55;&#x5230;&#x65B0;&#x7684;<code>edits</code>&#x6587;&#x4EF6;&#x4E2D;.(<code>edits</code>&#x6EDA;&#x52A8;)</p>
</li>
<li><p><code>SecondaryNameNode</code>&#x901A;&#x8FC7;<code>http get</code>&#x4ECE;<code>NameNode</code>&#x8BFB;&#x53D6;&#x5230;&#x6700;&#x8FD1;&#x7684;<code>FSImage</code>&#x548C;<code>edits</code>(&#x4E0D;&#x662F;&#x65B0;&#x521B;&#x5EFA;&#x7684;&#x90A3;&#x4E2A;).</p>
</li>
<li><p><code>SecondaryNameNode</code>&#x628A;&#x8BFB;&#x53D6;&#x8FC7;&#x6765;&#x7684;<code>FSImage</code>&#x548C;<code>edits</code>&#x52A0;&#x8F7D;&#x5230;&#x5185;&#x5B58;, &#x628A;<code>edits</code>&#x5408;&#x5E76;&#x5230;<code>FSImage</code>&#x4E2D;.</p>
</li>
<li><p>&#x5408;&#x5E76;&#x6210;&#x529F;&#x4E4B;&#x540E;, <code>SecondaryNameNode</code>&#x5C06;&#x65B0;&#x7684;<code>FSImage</code>&#x53D1;&#x9001;&#x5230;<code>NameNode</code>, <code>NameNode</code>&#x5C06;&#x5176;&#x4FDD;&#x5B58;&#x4E3A;&#x4E34;&#x65F6;&#x7684;<code>.ckpt</code>&#x6587;&#x4EF6;.</p>
</li>
<li><p><code>NameNode</code>&#x91CD;&#x65B0;&#x547D;&#x540D;&#x4E34;&#x65F6;&#x7684;<code>FSImage</code>&#x6587;&#x4EF6;, &#x4FBF;&#x4E8E;&#x65E5;&#x540E;&#x4F7F;&#x7528;.</p>
</li>
<li><p>&#x6700;&#x7EC8;, <code>NameNode</code>&#x62E5;&#x6709;&#x4E86;&#x6BD4;&#x8F83;&#x65B0;<code>FSImage</code>&#x548C;&#x4E00;&#x4E2A;&#x6B63;&#x5728;&#x8FDB;&#x884C;&#x4E2D;&#x6BD4;&#x8F83;&#x5C0F;&#x7684;<code>edits</code>&#x6587;&#x4EF6;.</p>
</li>
</ol>
<p>&#x7531;&#x4E8E;<code>SecondaryNameNode</code>&#x9700;&#x8981;&#x628A;<code>FSImage</code>&#x52A0;&#x8F7D;&#x5230;&#x5185;&#x5B58;, &#x6240;&#x4EE5;&#x5BF9;&#x5185;&#x5B58;&#x7684;&#x8981;&#x6C42;&#x4E5F;&#x662F;&#x6BD4;&#x8F83;&#x591A;&#x7684;, &#x4E0E;<code>NameNode</code>&#x7684;&#x9700;&#x8981;&#x7C7B;&#x4F3C;.&#x6240;&#x4EE5;&#x9700;&#x8981;&#x5C06;&#x5176;&#x653E;&#x5728;&#x4E13;&#x95E8;&#x7684;&#x670D;&#x52A1;&#x5668;&#x4E0A;, &#x4E0D;&#x80FD;&#x4E0E;<code>NameNode</code>&#x5728;&#x540C;&#x4E00;&#x53F0;&#x8BBE;&#x5907;.&#x5426;&#x5219;&#x5185;&#x5B58;&#x4E0D;&#x591F;&#x7528;.</p>
<hr>
<h3 id="&#x89E6;&#x53D1;checkpoint&#x7684;&#x65F6;&#x673A;">&#x89E6;&#x53D1;<code>checkpoint</code>&#x7684;&#x65F6;&#x673A;</h3>
<p>&#x4E0A;&#x9762;&#x5C31;&#x662F;<code>SecondaryNameNode</code>&#x5DE5;&#x4F5C;&#x673A;&#x5236;, &#x4F46;&#x662F;&#x6709;&#x4E00;&#x70B9;&#x6CA1;&#x6709;&#x8BF4;&#x660E;: &#x90A3;&#x5C31;&#x662F;&#x4EC0;&#x4E48;&#x65F6;&#x5019;&#x624D;&#x4F1A;&#x89E6;&#x53D1;<code>checkpoint</code>?</p>
<p>&#x4E0B;&#x9762;&#x4E24;&#x4E2A;&#x6761;&#x4EF6;, <strong>&#x6EE1;&#x8DB3;&#x4EFB;&#x610F;&#x628A;&#x4E00;&#x4E2A;</strong>&#x90FD;&#x4F1A;&#x89E6;&#x53D1;<code>checkpoint</code>:</p>
<ol>
<li><p>&#x9ED8;&#x8BA4;&#x60C5;&#x51B5;&#x4E0B;&#x6BCF;&#x9694;&#x4E00;&#x5C0F;&#x65F6;&#x521B;&#x5EFA;&#x4E00;&#x6B21;<code>checkpoint</code>.</p>
<ul>
<li>&#x53EF;&#x4EE5;&#x901A;&#x8FC7;<code>dfs.namenode.checkpoint.period</code>&#x5C5E;&#x6027;&#x6765;&#x8BBE;&#x7F6E;, &#x5355;&#x4F4D;&#x662F;<code>s</code></li>
</ul>
</li>
<li><p><code>edits</code>&#x5B58;&#x50A8;&#x6EE1;, &#x5373;&#x4F7F;&#x8FD8;&#x6CA1;&#x6709;&#x8FBE;&#x5230; 1 &#x5C0F;&#x65F6;: &#x9ED8;&#x8BA4;&#x662F;&#x8FBE;&#x5230;1000000&#x6761;&#x4E8B;&#x52A1;.</p>
<ul>
<li>&#x53EF;&#x4EE5;&#x8BBE;&#x7F6E;<code>edits</code>&#x7684;&#x4E0A;&#x9650;&#x6761;&#x4EF6;: <code>dfs.namenode.checkpoint.txns</code></li>
<li>&#x9ED8;&#x8BA4;&#x60C5;&#x51B5;&#x4E0B;, &#x6BCF;&#x9694;<code>1</code>&#x5206;&#x949F;&#x68C0;&#x6D4B;&#x4E00;&#x6B21;<code>edits</code>&#x662F;&#x5426;&#x5B58;&#x50A8;&#x6EE1;.<ul>
<li>&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x4E0B;&#x9762;&#x7684;&#x5C5E;&#x6027;&#x8BBE;&#x7F6E;&#x8FD9;&#x4E2A;&#x65F6;&#x95F4;&#x95F4;&#x9694;:<code>dfs.namenode.checkpoint.check.period</code></li>
</ul>
</li>
</ul>
</li>
</ol>
<p><img src="http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-7-13/39336596.jpg" alt=""></p>
<footer class="page-footer"><span class="copyright">Copyright &#xA9; &#x5C1A;&#x7845;&#x8C37;&#x5927;&#x6570;&#x636E; 2013-2019 all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification"><br>&#x8BE5;&#x6587;&#x4EF6;&#x6700;&#x540E;&#x4FEE;&#x8BA2;&#x65F6;&#x95F4;&#xFF1A;
2018-11-20 18:14:11
</span></footer>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="../di-10-zhang-namenode-he-secondarynamenode.html" class="navigation navigation-prev " aria-label="Previous page: 第 10 章 NameNode和SecondaryNameNode">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="102-namenodede-wen-jian-mu-lu-jie-gou.html" class="navigation navigation-next " aria-label="Next page: 10.2 NameNode的文件目录结构">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"10.1 NameNode和SecondaryNameNode工作机制","level":"2.5.1","depth":2,"next":{"title":"10.2 NameNode的文件目录结构","level":"2.5.2","depth":2,"path":"di-2-bu-fen-hdfs/di-10-zhang-namenode-he-secondarynamenode/102-namenodede-wen-jian-mu-lu-jie-gou.md","ref":"di-2-bu-fen-hdfs/di-10-zhang-namenode-he-secondarynamenode/102-namenodede-wen-jian-mu-lu-jie-gou.md","articles":[]},"previous":{"title":"第 10 章 NameNode和SecondaryNameNode","level":"2.5","depth":1,"path":"di-2-bu-fen-hdfs/di-10-zhang-namenode-he-secondarynamenode.md","ref":"di-2-bu-fen-hdfs/di-10-zhang-namenode-he-secondarynamenode.md","articles":[{"title":"10.1 NameNode和SecondaryNameNode工作机制","level":"2.5.1","depth":2,"path":"di-2-bu-fen-hdfs/di-10-zhang-namenode-he-secondarynamenode/101-gong-zuo-ji-zhi.md","ref":"di-2-bu-fen-hdfs/di-10-zhang-namenode-he-secondarynamenode/101-gong-zuo-ji-zhi.md","articles":[]},{"title":"10.2 NameNode的文件目录结构","level":"2.5.2","depth":2,"path":"di-2-bu-fen-hdfs/di-10-zhang-namenode-he-secondarynamenode/102-namenodede-wen-jian-mu-lu-jie-gou.md","ref":"di-2-bu-fen-hdfs/di-10-zhang-namenode-he-secondarynamenode/102-namenodede-wen-jian-mu-lu-jie-gou.md","articles":[]},{"title":"10.3 SecondaryNameNode的文件目录结构","level":"2.5.3","depth":2,"path":"di-2-bu-fen-hdfs/di-10-zhang-namenode-he-secondarynamenode/103-secondarynamenodede-wen-jian-mu-lu-jie-gou.md","ref":"di-2-bu-fen-hdfs/di-10-zhang-namenode-he-secondarynamenode/103-secondarynamenodede-wen-jian-mu-lu-jie-gou.md","articles":[]},{"title":"10.4 NameNode故障处理","level":"2.5.4","depth":2,"path":"di-2-bu-fen-hdfs/di-10-zhang-namenode-he-secondarynamenode/104-namenodegu-zhang-chu-li.md","ref":"di-2-bu-fen-hdfs/di-10-zhang-namenode-he-secondarynamenode/104-namenodegu-zhang-chu-li.md","articles":[]},{"title":"10.5 集群安全模式","level":"2.5.5","depth":2,"path":"di-2-bu-fen-hdfs/di-10-zhang-namenode-he-secondarynamenode/105-ji-qun-an-quan-mo-shi.md","ref":"di-2-bu-fen-hdfs/di-10-zhang-namenode-he-secondarynamenode/105-ji-qun-an-quan-mo-shi.md","articles":[]},{"title":"10.6 NameNode多目录配置","level":"2.5.6","depth":2,"path":"di-2-bu-fen-hdfs/di-10-zhang-namenode-he-secondarynamenode/106-namenodeduo-mu-lu-pei-zhi.md","ref":"di-2-bu-fen-hdfs/di-10-zhang-namenode-he-secondarynamenode/106-namenodeduo-mu-lu-pei-zhi.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["splitter","expandable-chapters-small","page-toc-button","-highlight","prism","prism-themes","tbfed-pagefooter","sitemap","change_girls","livereload"],"styles":{"website":"styles/website.css","ebook":"styles/ebook.css","pdf":"styles/pdf.css","mobi":"styles/mobi.css","epub":"styles/epub.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright &copy 尚硅谷大数据 2013-2019","modify_label":"<br>该文件最后修订时间：","modify_format":"YYYY-MM-DD HH:mm:ss"},"prism":{"css":["prism-themes/themes/prism-base16-ateliersulphurpool.light.css"]},"disqus":{"shortName":"zhenchao125"},"livereload":{},"splitter":{},"change_girls":{"time":30,"urls":["http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/62171757.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/83394736.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/15906185.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/15906185.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/3394270.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/65028582.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/20359261.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/37472401.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/3355397.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/11075549.jpg-atguiguImg"]},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"sitemap":{"hostname":"https://www.gitbook.com/@zhenchao125"},"page-toc-button":{"maxTocDepth":3,"minTocSize":2},"prism-themes":{},"expandable-chapters-small":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":" 李振超","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"大数据hadoop课堂笔记","language":"zh-hans","links":{"sidebar":{"联系我们":"http://www.atguigu.com/"}},"gitbook":"*","description":"课堂笔记,学生提前预习"},"file":{"path":"di-2-bu-fen-hdfs/di-10-zhang-namenode-he-secondarynamenode/101-gong-zuo-ji-zhi.md","mtime":"2018-11-20T10:14:11.949Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-12-28T00:23:48.052Z"},"basePath":"../..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-page-toc-button/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-change_girls/girls.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

